package indi.kider.server.apabus.service.related;

import indi.kider.common.model.employee.Tenant;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
import pers.vankid.common.model.base.CommonResponse;

import java.util.List;

@FeignClient(value = "human-resources")
public interface TenantService {

    @PostMapping("tenant")
    CommonResponse<Tenant> add(@RequestBody Tenant tenant);

    @PostMapping("tenant/list/all")
    CommonResponse<List<Tenant>> getTenants(@RequestBody Tenant tenant);


    @GetMapping("tenant/{id}")
    CommonResponse<Tenant> getTenantById(@PathVariable(value = "id") Long id);


}
